var path = require('path')

var outPath = path.resolve(__dirname, './bundle')

module.exports = {

  entry: './app.js',

  output: {

    path: outPath,

    filename: 'app.bundle.js',

  },

  module: {

    loaders: [{

      test: /\.js$/,

      exclude: /node_modules/,

      loader: 'babel-loader'

    }, {

      test: /\.css$/,

      exclude: /node_modules/,

      loader: 'style-loader!css-loader'

    }, {

      test: /\.less$/,

      exclude: /node_modules/,

      loader: 'style-loader!css-loader!less-loader'

    }]

  }

}